home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re SOM & Streams.2 < prev    next >
Encoding:
Internet Message Format  |  1996-07-03  |  955 b   |  [TEXT/ttxt]

  1. Subject:     Re: SOM & Streams
  2. Sent:        7/1/96 10:28 AM
  3. Received:    7/1/96 10:32 AM
  4. From:        Mark Lanett, mlanett@meer.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 6:32 AM 7/1/96, Scott Daniels wrote:
  9. >Mark,
  10. >
  11. >Thanks for the info, I have enough to go on now. However, I am still
  12. >puzzled as to why the wrapper class is needed, and why there can be only
  13. >one? How does this work & why?
  14.  
  15. The wrapper class is not needed; you can create a SOM object and call it
  16. directly if you wish.
  17.  
  18. There can be only one precisely because FW_OSink is *not* reference
  19. counted. Someone needs to own it; if you create it directly then you own it
  20. and are responsible for destroying it. If you create a FW_PRandomAccessSink
  21. subclass, then that object owns it. Why would you want to have multiple
  22. wrapper objects?
  23.  
  24. markl
  25.  
  26. --
  27. Mark Lanett, OpenDoc Framework, Apple Computer
  28.  
  29.